'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url admin/pages/kh/yhsj/false_czjl/tongji 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid, todayStart, StartTime, EndTime } = data;
		let res = { code: 0, msg: "", yjyj: 0, yjbl: 0 };
		// 业务逻辑开始-----------------------------------------------------------
		//查询今日充值总金额
					res.jrczje = await vk.baseDao.sum({
						dbName: "false_recharge", // 表名
						fieldName: "shifu_amount", // 需要求和的字段名
						whereJson: {
							//支付状态必须是已支付
							pay_status: 1,
							_add_time: _.and(_.gt(StartTime), _.lt(EndTime)),
						}
					});
					return res;



		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
